/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tlp.ucsur.desktop.forms;

import javax.swing.JFrame;


/**
 *
 * @author Administrador
 */
public class PrincipalSysReserv extends javax.swing.JFrame {

    /**
     * Creates new form PrincipalSysReserv
     */
    public PrincipalSysReserv() {
        initComponents();
        setExtendedState(JFrame.MAXIMIZED_BOTH);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        Principal = new javax.swing.JDesktopPane();
        Menu = new javax.swing.JMenuBar();
        Mantenimiento = new javax.swing.JMenu();
        MenuTUsuario = new javax.swing.JMenuItem();
        MenuUsuario = new javax.swing.JMenuItem();
        MenuLocal = new javax.swing.JMenuItem();
        MenuAula = new javax.swing.JMenuItem();
        MenuReserva = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem6 = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        Principal.setBackground(new java.awt.Color(204, 204, 204));
        Principal.setAlignmentX(500.0F);
        Principal.setAlignmentY(500.0F);
        getContentPane().add(Principal, java.awt.BorderLayout.CENTER);
        Principal.getAccessibleContext().setAccessibleName("");

        Mantenimiento.setIcon(new javax.swing.ImageIcon("D:\\SysReserv\\SysReservDesktop\\imagenes\\Application.png")); // NOI18N
        Mantenimiento.setText("Mantenimiento");

        MenuTUsuario.setText("Tipo de Usuario");
        MenuTUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuTUsuarioActionPerformed(evt);
            }
        });
        Mantenimiento.add(MenuTUsuario);

        MenuUsuario.setText("Usuarios");
        MenuUsuario.setActionCommand("Usuario");
        MenuUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuUsuarioActionPerformed(evt);
            }
        });
        Mantenimiento.add(MenuUsuario);

        MenuLocal.setText("Local");
        MenuLocal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuLocalActionPerformed(evt);
            }
        });
        Mantenimiento.add(MenuLocal);

        MenuAula.setText("Aula");
        MenuAula.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuAulaActionPerformed(evt);
            }
        });
        Mantenimiento.add(MenuAula);

        MenuReserva.setText("Reserva");
        MenuReserva.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuReservaActionPerformed(evt);
            }
        });
        Mantenimiento.add(MenuReserva);

        Menu.add(Mantenimiento);

        jMenu2.setIcon(new javax.swing.ImageIcon("D:\\SysReserv\\SysReservDesktop\\imagenes\\Favourites.png")); // NOI18N
        jMenu2.setText("Consultas");

        jMenuItem6.setText("Generar Reserva");
        jMenu2.add(jMenuItem6);

        jMenuItem7.setText("Visualizar Aula");
        jMenu2.add(jMenuItem7);

        Menu.add(jMenu2);

        jMenu3.setText("Reportes");
        Menu.add(jMenu3);

        setJMenuBar(Menu);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void MenuUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuUsuarioActionPerformed
     MantenimientoPersona mp= new MantenimientoPersona();
     Principal.add(mp);
     mp.setVisible(true);
    
     
    }//GEN-LAST:event_MenuUsuarioActionPerformed

    private void MenuTUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuTUsuarioActionPerformed
        MantenimientoTUsuario mtu= new MantenimientoTUsuario();
        Principal.add(mtu);
        mtu.setVisible(true);
       
        
    }//GEN-LAST:event_MenuTUsuarioActionPerformed

    private void MenuReservaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuReservaActionPerformed
        MantenimientoReserva mr= new MantenimientoReserva();
        Principal.add(mr);
         mr.setVisible(true);
      
    }//GEN-LAST:event_MenuReservaActionPerformed

    private void MenuLocalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuLocalActionPerformed
       MantenimientoLocal ml= new MantenimientoLocal(); 
       Principal.add(ml);
       ml.setVisible(true);
       
       
    }//GEN-LAST:event_MenuLocalActionPerformed

    private void MenuAulaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuAulaActionPerformed
      MantenimientoAulas ma= new MantenimientoAulas();
      //ma.setLocationRelativeTo(null);
      Principal.add(ma);
      ma.setVisible(true);
      //Mantenimiento.setEnabled(false);
    }//GEN-LAST:event_MenuAulaActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(PrincipalSysReserv.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(PrincipalSysReserv.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(PrincipalSysReserv.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(PrincipalSysReserv.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new PrincipalSysReserv().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu Mantenimiento;
    private javax.swing.JMenuBar Menu;
    private javax.swing.JMenuItem MenuAula;
    private javax.swing.JMenuItem MenuLocal;
    private javax.swing.JMenuItem MenuReserva;
    private javax.swing.JMenuItem MenuTUsuario;
    private javax.swing.JMenuItem MenuUsuario;
    private javax.swing.JDesktopPane Principal;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem7;
    // End of variables declaration//GEN-END:variables
}
